Version

InsertItem Method (SwapCollection<T>)

Inserts an element into the SwapCollection<T> at the specified index.
Syntax
'Declaration
 
Protected Overrides Sub InsertItem( _
   ByVal index As Integer, _
   ByVal item As T _
) 
protected override void InsertItem( 
   int index,
   T item
)

Parameters

index
The zero-based index at which item should be inserted.
item
The object to insert. The value can be null for reference types.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionindex is less than zero.-or-index is greater than Count.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also